Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 2d6cd8e33fc9f25a997424cfdf1427bad4d577a4


Parents : f4e3f1c
Author : Mark Qvist <mark@unsigned.io>
Date : 2023-02-09T12:40:35+01:00

Catch unhandled Ctrl-E before passing to terminal

Changes

1 files changed, 2 insertions(+), 0 deletions(-)


Diff

diff --git a/nomadnet/ui/TextUI.py b/nomadnet/ui/TextUI.py
index 6389aac..3f38744 100644
--- a/nomadnet/ui/TextUI.py
+++ b/nomadnet/ui/TextUI.py
@@ -217,6 +217,8 @@ class TextUI:
def unhandled_input(self, key):
if key == "ctrl q":
raise urwid.ExitMainLoop
+ elif key == "ctrl e":
+ pass
def display_main(self, loop, user_data):
self.loop.widget = self.main_display.widget


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────